package com.lgh.springframework.test.bean;

import com.lgh.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * ******************************************************
 *
 * @author liugh9
 * @version 1.0
 * @classname UserServiceBeforeAdvice
 * @description
 * @date 2023/03/07 21:24
 * <p>
 * ******************************************************
 */
public class UserServiceBeforeAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("拦截方法：" + method.getName());
    }

}
